import request from "@/utils/request";//导入repuest

//1.封装登录
export const UserLogin = ({username,password}) =>{
   return request.post('/h5/user/login',{username,password}
    )
}

//2.注册
export const UserRegister = ({username,password}) =>{
    return request.post('/h5/user/register',{username,password})

}
//3获取用户的详情
export const getUser = () =>{
    return request.get('/h5/user/currentUser')
}